package com.bbc.core.exception;

import cn.hutool.core.util.StrUtil;
import com.bbc.core.model.IResponse;

public class BusinessException extends BaseException {
   private static final long serialVersionUID = 1095433538316185019L;

   public BusinessException(Throwable throwable, String messageTemplate, Object... params) {
      super(StrUtil.format(messageTemplate, params), throwable);
   }

   public BusinessException(IResponse response, Object[] args, String message) {
      super(response, args, message);
   }

   public BusinessException(IResponse response, Object[] args, String message, Throwable cause) {
      super(response, args, message, cause);
   }
}
